From 2f0f0613f62a786c3ea398ec3f743df7c3305fa1 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 22 Sep 2011 18:35:30 +0100 Subject: [PATCH] x86: ucode-amd: Don't warn when no ucode is available for a CPU revision This patch originally comes from the Linus mainline kernel (2.6.33), find below the patch details: From: Andreas Herrmann There is no point in warning when there is no ucode available for a specific CPU revision. Currently the container-file, which provides the AMD ucode patches for OS load, contains only a few ucode patches. It's already clearly indicated by the printed patch_level whenever new ucode was available and an update happened. So the warning message is of no help but rather annoying on systems with many CPUs. Signed-off-by: Thomas Renninger Signed-off-by: Jan Beulich --- xen/arch/x86/microcode_amd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c index e1b495fc77..2a5ac718ed 100644 --- a/xen/arch/x86/microcode_amd.c +++ b/xen/arch/x86/microcode_amd.c @@ -96,11 +96,7 @@ static int microcode_fits(void *mc, int cpu) } if ( !equiv_cpu_id ) - { - printk(KERN_ERR "microcode: CPU%d cpu_id " - "not found in equivalent cpu table\n", cpu); - return -EINVAL; - } + return 0; if ( (mc_header->processor_rev_id) != equiv_cpu_id ) { -- 2.30.2